package com.Builder;

public class MainClass {
    public static void main(String[] args){
//        House house = new House();
//        house.setFloor("地板...");
//        house.setWall("墙...");
//        house.setHouseTop("屋顶...");


//        HouseBuilder builder = new SmallHouseImpl();
//        House house = builder.getHouse();
//        builder.makeFloor();
//        builder.makeWall();
//        builder.makeHouseTop();



//        HouseBuilder builder = new SmallHouseImpl();
        HouseBuilder builder = new BigHouseImpl();
        HouseDirector houseDirector = new HouseDirector(builder);
        houseDirector.makeHouse();
        House house = builder.getHouse();

        System.out.println(house.getFloor());
        System.out.println(house.getWall());
        System.out.println(house.getHouseTop());


    }
}
